package com.cz.zslu.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * <p>
 * 报价
 * </p>
 *
 * @author 森森
 * @since 2018-12-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("quotation")
public class Quotation extends SuperEntity<Quotation> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;
    /**
     * 店铺id
     */
    @TableField("store_id")
    private Long storeId;
    /**
     * 商品id
     */
    @TableField("commodity_id")
    private Long commodityId;
    /**
     * 价格
     */
    private BigDecimal amount;

    @ApiModelProperty("报价人信息")
    @TableField(exist = false)
    private ZslStore zslStore;


}
